﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="changPW.aspx.cs" Inherits="View_MIS_changPW" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table>
        <tr>
            <td>
                <asp:Label ID="lbl1" runat="server" Text="原本的密碼:"></asp:Label>                
            </td>
            <td>
                <asp:TextBox ID="txtOldPW" runat="server" TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl2" runat="server" Text="新密碼:"></asp:Label>
            
            </td>
            <td>
                <asp:TextBox ID="txtNewPw1" runat="server" TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td >
                <asp:Label ID="Label1" runat="server" Text="新密碼再一次:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtNewPw2" runat="server" TextMode="Password"></asp:TextBox>            
                <asp:CompareValidator ID="cmp" runat="server" 
                    ControlToCompare="txtNewPw1"
                    ControlToValidate="txtNewPw2"
                    ErrorMessage = "新密碼不同，請確認 !" 
                    ></asp:CompareValidator>            
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnExecute" runat="server"  Text="確定" OnClick="btnExecute_Click"/>            
                <asp:Label ID="lblResult" runat="server" Text=""></asp:Label>
            </td>
        </tr>
    </table>    
</asp:Content>

